package com.cy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.cy.common.vo.BrandList;
import com.cy.common.vo.CategoryList;
import com.cy.entity.SysGoodsInfo;
import com.cy.entity.SysUser;

/**  
 * @Title:  SysGoodsListDao.java   
 * @Package com.cy.dao   
 * @Description:    描述   
 * @author: ZHANGSIMIN     
 * @date:   2019年10月20日 下午4:25:26   
 * @version V1.2 
 */
@Mapper
public interface SysGoodsListDao {
	
	public List<SysGoodsInfo> getGoodsInfoByType(Integer type,Integer startIndex,Integer pageSize,Integer... ids);
	
	/**
	 *  获取当前选择分类的父类包含的所有id
	 * @param id 当前分类id
	 * @return
	 */
	public Integer[] getGoodsCategoryList(Integer id);
	
	public Integer getGoodsCategoryListRowCount(Integer type,Integer... ids);
	
	public double getGoodsBasePrice(Integer id);
	
	public String getGoodsListImg(Integer id);
	
	public List<BrandList> getBrandListByCateId(Integer id);
	
	public List<BrandList> getBrandListByBrandId(Integer id);
	
	public List<CategoryList> getCateListByCateId(Integer[] ids);
	
	public int getCateId(Integer id);
	
	public List<SysGoodsInfo> Search(String s,Integer startIndex,Integer pageSize);
}
